package com.liangjie.math;

public class MathDemo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		double a = 3.14;
		double b = 5.45;
		
		float c = 1.02F;
		float d = 3.15F;
		
		int e = 4;
		int f = 6;
		
		long g = 151513133;
		long h = 131313131;
		
		System.out.println(Math.max(a, b));
		System.out.println(Math.max(c, d));
		System.out.println(Math.max(e, f));
		System.out.println(Math.max(g, h));
		
		System.out.println(Math.min(a, b));
		System.out.println(Math.min(c, d));
		System.out.println(Math.min(e, f));
		System.out.println(Math.min(g, h));
		
		System.out.println(Math.ceil(a));
		

	}

}
